#include <log/log.h>
#include <json/json.h>
#include <iostream>
#include <fstream>
int main()
{
    Json::Value root;
    Json::Reader reader;
    std::ifstream ifs("/vendor/bin/example.json"); //open file example.json

    if (!reader.parse(ifs, root))
    {
        // fail to parse
    }
    else
    {
        // success
        std::cout << root["encoding"].asString() << std::endl;
        std::cout << root["indent"]["length"].asInt() << std::endl;
    }
}